    <!DOCTYPE html>
    <html>
    <head>
    <title>Bootstrap 101 Template</title>
    <!-- Bootstrap -->
    <link href="/incofarming/Views/css/bootstrap.min.css" rel="stylesheet" media="screen">
	<link rel="stylesheet" type="text/css" href="/incofarming/Views/css/fullscreen.css">

<style>
	.kop-content{
	float: left;
	margin: 0 5px 10px 5px;
}

.kop-item{
	margin-bottom: 10px;
}

.none-product{
	text-align: center;
	background-color: #6495ed;
	padding: 30px 10px 30px 10px;
	border-style: solid;
	border-color: #000;
	font-family: "Courier New", Times, serif;
}
</style>style>
    </head>
	<body>
	
	
       <div class="navbar">
    <div class="navbar-inner">
    <a class="brand" href="#">Manajemen Produk</a>
    </div>
    </div>
	        
		
		
		
		<div class="hero-unit">		
			<img src="img/c.jpg">
			<div id="container">
 			 </div>
				<h2>INDONESIA COOPERATIVES IN FARMING</h2>
			</div>
		</div>
			
		<div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header"></li>
              <li><a href="/incofarming/Functions/koperasi/dashkop.php">Dashboard</a></li>
              <li><a href="/incofarming/Functions/koperasi/edit-profil.php">Manajemen Profil</a></li>
              <li class="active"><a href="/incofarming/Functions/produk/manajemenproduk.php">Manajemen Produk</a></li>
              
            </ul>
          </div><!--/.well -->
        </div><!--/span-->
        <div class="span9 row-fluid" >
        <div class="hero-unit">
         <h2>Manajemen Produk</h2>
        
		<div style="margin-bottom: 30px; text-align: right;"><a href="/incofarming/Functions/produk/tambah-produk.php">+ Tambah Produk </a></div>
		
		<?php if(!isset($prod_arr)): ?>
					<div class="none-product">Koperasi anda tidak memiliki produk</div>
				<?php //var_dump($prod_arr); ?>
				<?php else: ?>
				<?php
					$prod_arr_length = count($prod_arr);
					$min = $prod_arr_length - 3;
					if($min < 0) $min = 0; ?>
						
						
						<?php foreach($prod_arr as $row): ?>
							<li class='span4'>
								<?php if(!isset($row['foto'])): ?>
									<img src="/incofarming/Views/img/default-foto-produk.jpg" width="200" height="10">
								<?php else: ?>
									<img src="/incofarming/Views/img/produk/<?php echo $row['nama_foto']; ?>" width="200" height="180">
								<?php endif; ?>
								<form action="/incofarming/Functions/produk/delete-produk.php" method="post">
									<div class="delete-button-section" >
										<input type="submit" name="delete-product" value="x" style="position:absolute; background-color: #c0c0df;  ">
									</div>
									<input type="hidden" name="id-produk" value="<?php echo $row['id_produk']; ?>">
								</form>
								<center style="margin-top: -20px;"><a href='/incofarming/Functions/produk/lihat-produk.php?id=<?php echo $row["id_produk"]; ?>'><?php echo $row['nama_prod']; ?></a></center>
							</li>
						<?php endforeach; ?>
						
				
				<?php endif; ?>
        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
        <p>&copy; Company 2012</p>
      </footer>

    </div><!--/.fluid-container-->
	
	
<script src="js/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
    </body>
    </html>